function cmd = setSnapshot(cmd, solverstatefile)

cmd = mycaffe.rmFields(cmd, 'weights');
cmd.snapshot = srdata.checkFileFormat(solverstatefile, '.solverstate');
